<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:h="http://java.sun.com/jsf/html"
                 template="template.xhtml"
                 xmlns:c="http://java.sun.com/jsp/jstl/core"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:ice="http://www.icesoft.com/icefaces/component"
                 xmlns:icecore="http://www.icefaces.org/icefaces/core"
                 xmlns:ace="http://www.icefaces.org/icefaces/components">

    <ui:param name="title" value="Nyheter"/>
    <ui:define name="content">
aaa #{param.name} bbb
        <ice:form>
            <ice:panelGroup>
                <ice:panelGrid columns="3" columnClasses="reg-labels, reg-input, reg-msg">
                    <ice:outputLabel for="TxtTitle"
                                     value="#{bundle.title}" style="line-height:200%"/>
                    <ice:inputText id="TxtTitle"
                                   size="30"
                                   maxlength="30"
                                   value="#{addAchiBackBean.title}"
                                   partialSubmit="false"
                                   required="false">
                        <icecore:singleSubmit />
                    </ice:inputText>
                    <ice:message id="titleMsg" for="TxtTitle" style="color:red; line-height:200%;background: url( 'xmlhttp/css/rime/css-images/bullet.gif' ) no-repeat 0 3px;padding-left:15px"/>
                </ice:panelGrid>

                <ice:panelGrid columns="3" columnClasses="reg-labels, reg-input, reg-msg">
                    <ice:outputLabel for="TxtDescription"
                                     value="#{bundle.description}"
                                     style="line-height:200%;width:500px;"/>
                    <ice:inputText id="TxtDescription"
                                   size="30"
                                   maxlength="30"
                                   value="#{addAchiBackBean.description}"
                                   partialSubmit="false"
                                   required="false">
                        <icecore:singleSubmit />
                    </ice:inputText>
                    <ice:message id="descMsg" for="TxtDescription" style="color:red; line-height:200%;background: url( 'xmlhttp/css/rime/css-images/bullet.gif' ) no-repeat 0 3px;padding-left:15px"/>
                </ice:panelGrid>

                <ice:panelGrid columns="3" columnClasses="reg-labels, reg-input, reg-msg">
                    <ice:outputLabel for="TxtCategory"
                                     value="#{bundle.category}"
                                     style="line-height:200%;width:500px;"/>
                    <ice:inputText id="TxtCategory"
                                   size="30"
                                   maxlength="30"
                                   value="#{addAchiBackBean.category}"
                                   partialSubmit="false"
                                   required="false">
                        <icecore:singleSubmit />
                    </ice:inputText>
                    <ice:message id="catMsg" for="TxtCategory" style="color:red; line-height:200%;background: url( 'xmlhttp/css/rime/css-images/bullet.gif' ) no-repeat 0 3px;padding-left:15px"/>
                </ice:panelGrid>

                <ice:panelGrid columns="3" columnClasses="reg-labels, reg-input, reg-msg">
                    <ice:outputLabel for="TxtSubcategory"
                                     value="#{bundle.subcategory}"
                                     style="line-height:200%;width:500px;"/>
                    <ice:inputText id="TxtSubcategory"
                                   size="30"
                                   maxlength="30"
                                   value="#{addAchiBackBean.subcategory}"
                                   partialSubmit="false"
                                   required="false">
                        <icecore:singleSubmit />
                    </ice:inputText>
                    <ice:message id="subCatMsg" for="TxtSubcategory" style="color:red; line-height:200%;background: url( 'xmlhttp/css/rime/css-images/bullet.gif' ) no-repeat 0 3px;padding-left:15px"/>
                </ice:panelGrid>

                <ice:panelGrid columns="3" columnClasses="reg-labels, reg-input, reg-msg">
                    <ice:outputLabel for="file-entry"
                                     value="Bild"
                                     style="line-height:200%;width:500px;"/>
                    
                    <ace:fileEntry id="file-entry" 
                                   relativePath="/achi_img/"
                                   maxFileCount="1" 
                                   maxFileCountMessage="Limited to 1 files uploaded concurrantly." 
                                   fileEntryListener="#{addAchiControlBean.uploadListener}" 
                                   maxFileSize="6291456" 
                                   maxFileSizeMessage="Submitted file is too large." 
                                   maxTotalSize="18874368" 
                                   maxTotalSizeMessage="Total size of submitted files is too large." 
                                   required="true" 
                                   requiredMessage="The file is required to submit this form." 
                                   useOriginalFilename="true" 
                                   useSessionSubdir="true"/>
                </ice:panelGrid>
                <ice:commandButton value="Add Achi"
                                   style="font-size:12px"
                                   action="#{addAchiControlBean.buttonClicked}"/>

            </ice:panelGroup>
        </ice:form>

    </ui:define>

</ui:composition>